package cn.com.lsy.product.lepao.validators;

import cn.com.lsy.product.lepao.validators.impl.IPhoneValidatorsClass;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Constraint(validatedBy = IPhoneValidatorsClass.class)
public @interface IPhoneValidators {

    String message() default "手机号不正确";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
